package com.stox.client.embedded.data.provider;

import java.util.List;

import com.stox.client.api.data.provider.ScripClient;
import com.stox.services.data.provider.manager.ScripManager;
import com.stox.shared.core.model.Scrip;
import com.stox.shared.core.model.filter.ScripCriteria;
import com.stox.shared.core.util.DebugUtil;

public class EmbeddedScripClient implements ScripClient {

	public static final EmbeddedScripClient INSTANCE = new EmbeddedScripClient();
	
	private EmbeddedScripClient() {
		
	}
	
	@Override
	public List<Scrip> find(ScripCriteria scripCriteria) {
		DebugUtil.printStack();
		return ScripManager.INSTANCE.findByScripCriteria(scripCriteria);
	}
	
	@Override
	public Scrip findOne(Long id) {
		DebugUtil.printStack();
		return ScripManager.INSTANCE.findOne(id);
	}

}
